
import { NativeModules } from 'react-native';

const isTurboModuleEnabled = global.__turboModuleProxy != null;

const RNSecureKeyStore = isTurboModuleEnabled
  ? require('./src/NativeRNSecureKeyStore').default
  : NativeModules.RNSecureKeyStore;

export const ACCESSIBLE = {
    WHEN_UNLOCKED: 'AccessibleWhenUnlocked',
    AFTER_FIRST_UNLOCK: 'AccessibleAfterFirstUnlock',
    ALWAYS: 'AccessibleAlways',
    WHEN_PASSCODE_SET_THIS_DEVICE_ONLY: 'AccessibleWhenPasscodeSetThisDeviceOnly',
    WHEN_UNLOCKED_THIS_DEVICE_ONLY: 'AccessibleWhenUnlockedThisDeviceOnly',
    AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY:
      'AccessibleAfterFirstUnlockThisDeviceOnly',
    ALWAYS_THIS_DEVICE_ONLY: 'AccessibleAlwaysThisDeviceOnly',
  };


export default RNSecureKeyStore;
